package component_manager

import (
	"layouts/types"
)

// AddToContainerFuncs is a list of functions to add all components to the Container
var AddToContainerFuncs []func(m *types.Manager) error

// AddToContainer adds all Controllers to the Container
func AddToContainer(m *types.Manager) error {
	for _, f := range AddToContainerFuncs {
		if err := f(m); err != nil {
			return err
		}
	}
	return nil
}

